package com.heima.Controller;

import com.heima.Service.AdminLoginService;
import com.heima.model.Admin.Pojos.AdUser;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/service_6001/admin/")
public class AdminLoginController {

    @Autowired
    AdminLoginService adminLoginService;
    @PostMapping("login/in")
    public ResponseResult Login(@RequestBody AdUser adUser)
    {
        return adminLoginService.Login(adUser);
    }

}
